<template>
  <div class="article-container">
    <el-button type="danger" @click="btns">危险按钮</el-button>
  </div>
</template>

<script>
export default {
  name:'',
  components: {},
  props: {},
  data() {
    return {
    };
  },
  watch: {
      
  },
  computed: {},
  methods: {
      btns(){
          window.sessionStorage.clear()
            this.$router.push('/login')
            this.$message({
                    showClose:true,
                    message:"退出成功！",
                    type:'success'
        })
      }
  },
  created() {},
  mounted() {}
};
</script>
<style lang="less" scoped>
.article-container {
}
</style>